import axios from "axios";

export default async function (url: string,  data?: any, method = "GET") {
    return await axios.request({
        url,
        method,
        data
    });
}